// app.js
App({
  onLaunch() {
    var that = this;
    wx.request({
      url: 'http://localhost:8080/player',
      data:{

      },
      header:{
        "content-type":"application/json"
      },
      success:function(res){
        console.log(res.data);
        that.globalData.player=res.data;
        console.log(that.globalData.player);
      }
    })
    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    player:{},
    things:['树枝','树枝','石头','破布','破布','石头','树枝','树枝'],
    endproduct:[]
  },
  
})
